﻿#region Using

using Moq;

using StructureMap;

#endregion

namespace Common.Test
{
    #region Using

    

    #endregion

    public static class TestHelper
    {
        public static Mock<T> SetupMock<T>() where T : class
        {
            var moq = new Mock<T>(MockBehavior.Strict);
            ObjectFactory.Configure(x => x.For<T>().Use(moq.Object));
            return moq;
        }
    }
}